<% var tabRightSecitionPart = { %>
		<span onclick="HtmlRender('${BASE}/admin/cms/slide/listCat')">幻灯片分类列表</span>
		<span onclick="HtmlRender('${BASE}/admin/cms/slide/addCat')">添加幻灯片分类</span>
<%};%>
<% var formLeftSecitionPart = { %>
		<div class="row cl">
			<label class="form-label col-xs-3"><span class="c-red">*</span>所属分类：</label>
			<div class="formControls col-xs-6">
				<select name="cid" class="select-box">
					<option value="0">默认分类</option>
					<% for(cat in catList){ %>
					<option value="${cat.id}" ${cat.id==obj.cid?"selected"} >${cat.name}</option>
					<% } %>
				</select>
			</div>
			<div class="col-xs-3"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3"><span class="c-red">*</span>幻灯片名称</label>
			<div class="formControls col-xs-6">
				<input type="text" value="${obj.name}" class="input-text" id="name" name="name" datatype="*2-200" nullmsg="幻灯片名称不能为空">
			</div>
			<div class="col-xs-3"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3">链接地址：</label>
			<div class="formControls col-xs-6">
				<input type="text" value="${obj.url}" class="input-text" id="url" name="url">
			</div>
			<div class="col-xs-3"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3">描述：</label>
			<div class="formControls col-xs-6">
				<input type="text" value="${obj.des}" class="input-text" id="des" name="des">
			</div>
			<div class="col-xs-3"> </div>
		</div>
      <div class="row cl">
        <label class="form-label col-xs-3">文本介绍：</label>
        <div class="formControls col-xs-6">
          <textarea id="remarks" name="remarks" cols="" rows="" class="textarea"  placeholder="幻灯片内容...200个字符以内" dragonfly="true" onKeyUp="textarealength(this,200)">${obj.remarks}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3">富文本介绍：</label>
        <div class="formControls col-xs-9">
              <script id="content" name="content" type="text/plain">${obj.content}</script>
              <script type="text/javascript" src="${STATIC}/lib/ueditor/ueditor.config.js"></script>
              <script type="text/javascript" src="${STATIC}/lib/ueditor/ueditor.all.min.js"></script>
              <script type="text/javascript">UE.getEditor('content');</script>
        </div>
      </div>
      <input type="hidden" id="pic" name="pic"  value="${obj.pic}">
<%};%>
<% var formRightSecitionPart = { %>
      <div class="panel panel-default">
        <div class="panel-header">图片预览</div>
        <div class="panel-body text-c">
			<img id="fileImage" src="${IMAGEPATH}/${obj.pic!}" class="img-thrum">
            <div id="fileInfo"></div>
            <div id="picker">选择图片</div>
        </div>
      </div>
<%};%>
<% var jsSecitionPart = { %>
<script type="text/javascript">
$(function(){
	uploadImage("picker","fileImage","fileInfo","pic");
});
</script>
<%};
  include("/admin/inc/layout_edit.html",{
  	baseUrl:BASE+'/admin/cms/slide',
  	entityName:'幻灯片',
  	isUpload:false,
  	formLeftSecition:formLeftSecitionPart,
  	formRightSecition:formRightSecitionPart,
  	tabRightSecition:tabRightSecitionPart,
  	jsSecition:jsSecitionPart
  }){}
 %>